if (cardList.count = 3) and not cardList.findPos(#holder) then
shuffle(complist)
if (getColor(sprite(cardList[1]).member.name) = getColor(string(complist[1].mGetImage()))) and (getColor(sprite(cardList[2]).member.name) = getColor(string(complist[2].mGetImage()))) and (getColor(sprite(cardList[3]).member.name) = getColor(string(complist[3].mGetImage()))) and ((getDenom(sprite(cardList[1]).member.name) = complist[1].pRank) and (getDenom(sprite(cardList[2]).member.name) = complist[2].pRank) and (getDenom(sprite(cardList[3]).member.name) = complist[3].pRank)) then